Skip to content

Use XDG base directories by default on Unix systems #60

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liff
Copy link

@liff liff commented Jan 31, 2018

See XDG Base Directory Specification .

Chooses userdir as follows:

  1. Use ~/.visualvm if it already exists (so as to not break existing usage),
  2. use $XDG_DATA_HOME/visualvm if XDG_DATA_HOME environment variable is defined and otherwise
  3. use ~/.local/share/visualvm.

Similarly for cachedir:

  1. Use ~/.cache/visualvm if it already exists or if XDG_CACHE_HOME environment variable is not defined, but if it is
  2. use $XDG_CACHE_HOME/visualvm.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants